package com.djzhou.gmms.util.properties;import java.io.BufferedInputStream;import java.io.FileInputStream;import java.util.Properties;import jodd.props.Props;public class JoddPropUtil {	public String load(String filename,String key){		String value="";		String filepath=this.getClass().getResource("/").toString()+filename+".properties";		filepath=filepath.substring(filepath.indexOf(":")+1,filepath.length());		try {			Properties props = new Properties();			props.load(new BufferedInputStream(new FileInputStream(filepath)));			value=props.getProperty(key);			return value;		} catch (Exception e) {			e.printStackTrace();		}		return value;	}		public static String loadStatistic(String filename,String key){		JoddPropUtil joddPropUtil=new JoddPropUtil();		return joddPropUtil.load(filename, key);	}		public static void main(String[] args) {		String attendanceDayStr=JoddPropUtil.loadStatistic("config", "attendanceDay");		System.out.println(attendanceDayStr);	}}